/**
 * Created by GG on 2017/3/30.
 */
window.onload=function(){
	$(".bg-pic").attr("src","../img/static/bgi4.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".news").css("border-bottom","5px solid #e4006e");
	$(".content").css("display","none")
	$(".news-page").css("display","none");
	$(".paged").css("display","none");
	$(".news-details-page").css("display","block");
	$(".details-control").css("display","block");

	var newsid = location.search.split("=")[1];
	$.getJSON("http://op.admin.jufan.tv/api/newsDetail?callbackname=?",{id: newsid}, function (json){
		try{
			$(".details-title").html(json.title);
			$(".details-time").html(json.create_time);
			$(".details-conetxt").html(json.content);
		}catch(e){
		}
	})
}
